package com.itheima.service;


import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    PageInfo<Role> findPage(QueryPageBean queryPageBean);

    List<Permission> findPermission();

    List<Menu> findMenu();

    void addRole(Role role, Integer[] permissionIds, Integer[] menuIds);

    Role findRoleByIdBackRole(Integer roleId);

    List<Integer> findRolePermissionByRoleId(Integer roleId);

    List<Integer> findRoleMenuByRoleId(Integer roleId);

    void updateByRole(Role role);


    void updateBypermissionIds(Integer roleId, Integer[] permissionIds);

    void updateBymenuIds(Integer roleId, Integer[] menuIds);

    void deleteById(Integer id);

    List<String> findkeywords();

}
